Log
public class Log
| Constant Summary | |
|---|---|
| final static str | |
| final static str | |
| final static str | |
| final static str | |
| final static str | |
| final static str | |
| Method Summary | |
|---|---|
| static void | init(array config) 日志初始化  | 
| static array | getLog(string type) 获取日志信息  | 
| static void | record(mixed msg, string type) 记录调试信息  | 
| static void | clear() 清空日志信息  | 
| static void | key(string key) 当前日志记录的授权key  | 
| static bool | check(array config) 检查日志写入权限  | 
| static bool | save() 保存调试信息  | 
| static bool | write(mixed msg, string type, bool force) 实时写入日志信息 并支持行为  | 
public final static  str ALERT = 'alert'
public final static  str ERROR = 'error'
public final static  str INFO = 'info'
public final static  str LOG = 'log'
public final static  str NOTICE = 'notice'
public final static  str SQL = 'sql'
public static  void init(array config)
日志初始化
public static  array getLog(string type)
获取日志信息
public static  void record(mixed msg, string type)
记录调试信息
public static  void clear()
清空日志信息
public static  void key(string key)
当前日志记录的授权key
public static  bool check(array config)
检查日志写入权限
public static  bool save()
保存调试信息
public static  bool write(mixed msg, string type, bool force)
实时写入日志信息 并支持行为
Class Log